package com.love.poetry.domain.poetry;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.youboy.core.domain.AbstractDomain;

/**
 * 诗人作者表：poet
 * 
 * @author haichun
 * 
 */
public class Poet extends AbstractDomain {

	private static final long serialVersionUID = 1L;

	private String name;// 诗人名称 name 例如：杜甫
	private String spellName;// 名称拼音 spell_name 例如：dufu
	private String anotherName;// 别名 another_name 例如：少陵野老，杜陵布衣
	private String respectfulName;// 尊称 respectful_name 例如：诗圣
	private String dynasty;// 朝代 dynasty 例如：唐朝
	private String dynastyPeriod;// 朝代时期 dynasty_period 例如：初唐
	private String nation;// 民族 nation 例如：汉族
	private String birthplace;// 出生地 birthplace 例如：唐朝河南省巩县（今巩义市）
	private String birthDate;// 出生日期 birth_date 例如：712年(壬子年)
	private String dieDate;// 逝世日期 die_date 例如：770年（庚戌年）
	private String officialPosition;// 官职 official_position 例如：无
	private String mainAchievement;// 主要成就 main_achievement 例如：创作大量现实主义诗歌
	private String delegateWorks;// 代表作品 delegate_works 例如：《杜工部集》
	private String genreStyle;// 流派 genre_style 例如：唐代现实主义
	private String img;// 头像照片 img 多张可以使用；符号分隔开
	private String intro; // 作者简介 intro
	private long createTime;// 创建时间 create_time 创建时间，long类型
	private int sort;// 排序 sort，默认为1
	private String dataState;// 数据状态 data_state 例如：1或者0

	private List<Verse> verses=new ArrayList<Verse>();
	
	public String getName() {
		return name;
	}

	public Poet setName(String name) {
		this.name = name;
		return this;
	}

	public String getSpellName() {
		return spellName;
	}

	public Poet setSpellName(String spellName) {
		this.spellName = spellName;
		return this;
	}

	public String getAnotherName() {
		return anotherName;
	}

	public Poet setAnotherName(String anotherName) {
		this.anotherName = anotherName;
		return this;
	}

	public String getRespectfulName() {
		return respectfulName;
	}

	public Poet setRespectfulName(String respectfulName) {
		this.respectfulName = respectfulName;
		return this;
	}

	public String getDynasty() {
		return dynasty;
	}

	public Poet setDynasty(String dynasty) {
		this.dynasty = dynasty;
		return this;
	}

	public String getDynastyPeriod() {
		return dynastyPeriod;
	}

	public Poet setDynastyPeriod(String dynastyPeriod) {
		this.dynastyPeriod = dynastyPeriod;
		return this;
	}

	public String getNation() {
		return nation;
	}

	public Poet setNation(String nation) {
		this.nation = nation;
		return this;
	}

	public String getBirthplace() {
		return birthplace;
	}

	public Poet setBirthplace(String birthplace) {
		this.birthplace = birthplace;
		return this;
	}

	public String getBirthDate() {
		return birthDate;
	}

	public Poet setBirthDate(String birthDate) {
		this.birthDate = birthDate;
		return this;
	}

	public String getDieDate() {
		return dieDate;
	}

	public Poet setDieDate(String dieDate) {
		this.dieDate = dieDate;
		return this;
	}

	public String getOfficialPosition() {
		return officialPosition;
	}

	public Poet setOfficialPosition(String officialPosition) {
		this.officialPosition = officialPosition;
		return this;
	}

	public String getMainAchievement() {
		return mainAchievement;
	}

	public Poet setMainAchievement(String mainAchievement) {
		this.mainAchievement = mainAchievement;
		return this;
	}

	public String getDelegateWorks() {
		return delegateWorks;
	}

	public Poet setDelegateWorks(String delegateWorks) {
		this.delegateWorks = delegateWorks;
		return this;
	}

	public String getGenreStyle() {
		return genreStyle;
	}

	public Poet setGenreStyle(String genreStyle) {
		this.genreStyle = genreStyle;
		return this;
	}

	public String getImg() {
		return img;
	}

	public Poet setImg(String img) {
		this.img = img;
		return this;
	}

	public String getIntro() {
		return intro;
	}

	public Poet setIntro(String intro) {
		this.intro = intro;
		return this;
	}

	public long getCreateTime() {
		return createTime;
	}

	public Poet setCreateTime(long createTime) {
		this.createTime = createTime;
		return this;
	}

	public int getSort() {
		return sort;
	}

	public Poet setSort(int sort) {
		this.sort = sort;
		return this;
	}

	public String getDataState() {
		return dataState;
	}

	public Poet setDataState(String dataState) {
		this.dataState = dataState;
		return this;
	}

	public List<Verse> getVerses() {
		if (null==this.verses) {
			return Collections.emptyList();
		}
		return verses;
	}

	public Poet setVerses(List<Verse> verses) {
		this.verses = verses;
		return this;
	}

}